<?php


namespace app\common\models;


use app\common\facades\auth\Auth;
use app\common\traits\BaseModelOptionTrait;
use think\Model;

    class UserPair extends Model
{
    use BaseModelOptionTrait;

    protected $table = 'xiangji_user_pair';





    // 用户签到:一对多
    public function signs()
    {
        return $this->hasMany(UserSign::class);
    }

    // 签到打卡记录
    public function signsRecord()
    {
        return $this->hasOne(UserSignsRecord::class,"pair_id");
    }





}
